package com.hziee.graduate.ticket.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@TableName("t_coupon_order")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CouponOrder extends Model<CouponOrder> {

    private Long couponRecordId;
    private Long userId;
    private Long couponId;
    private LocalDateTime createTime;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.couponRecordId;
    }
}

